var baseUrl="/api";



var baseURL="http://192.168.1.168:8751/api"

var request = function(options){
    return new Promise((resolve,reject)=>{
        uni.request({
            url:baseURL+options.url,
            method:options.method||'GET',
            data:options.data||{},
            dataType:options.dataType||'json',
            success:(res)=>{
                resolve(res.data)
            },
            fail:(err)=>{
                reject(err)
            }
        })
    })
}
export default request


